<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="/publico/template/templatePadrao.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core">

    <ui:define name="content">

        
        <h:form>

            <h:inputHidden value="#{programaBean.programa}" converter="programaConversor"/>
            <h:panelGrid 
                id="display" 
                columns="2" 
                cellpadding="4" 
                style="margin:0 auto;">  

                <f:facet name="header">
                    <h:outputText value="Deseja realmente Exluir?"/>
                </f:facet>
                
                <h:outputText value="Nome:" />  
                <h:outputText value="#{programaBean.programa.nome}" 
                              style="font-weight:bold"/>  

                <p:commandButton 
                    action="#{programaBean.excluir}" 
                    ajax="false"
                    update=":form:dtPrograma"
                    value="Sim" />

                <p:commandButton 
                    value="Não" 
                    ajax="false"
                    action="listar.xhtml"/>

            </h:panelGrid> 

        </h:form>

    </ui:define>

</ui:composition>
